package com.example.api;

import com.example.model.PlantResult;
import com.example.model.Result;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface BaseApi {
    //根据地块编码查询农户
    @GET("api/v1/farmerland/getFarmerInfoByFarmLandCode")
    Call<Result> getInfo(@Query("code") String code);
    //查询区域年份作物的种植面积
    @POST("api/v1/plantstructure/statisticsAreaCodeInfo")
    Call<PlantResult> getPlantArea(@Body Map<String,String> map);

}
